﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.DALFactory;

namespace KPIS.GERP.GHRMS.BLL
{
    public class PerformanceAgreementBLL : IPerformanceAgreementBLL
    {
        private static readonly IPerformanceAgreementDAL dal = DataAccess.CreatPerformanceAgreement();

        public DataTable Search(string strQueryString, string strGoal, string strAction, string strRemark,
                                int? intCreateBy, int? intAgreementSeq)
        {
            return dal.Search(strQueryString, strGoal, strAction, strRemark, intCreateBy, intAgreementSeq);
        }

        public void Insert(string strQueryString, string strGoal, string strAction, string strRemark, int? intCreateBy)
        {
            dal.Insert(strQueryString, strGoal, strAction, strRemark, intCreateBy);
        }

        public void Update(string strQueryString, string strGoal, string strAction, string strRemark,
                            int? intCreateBy, int? intAgreementSeq)
        {
            dal.Update(strQueryString, strGoal, strAction, strRemark, intCreateBy, intAgreementSeq);
        }

        public void Delete(int? intCreateBy, int? intAgreementSeq, string strQueryString)
        {
            dal.Delete(intCreateBy, intAgreementSeq, strQueryString);
        }

        public bool CheckValueSubmit(int? intAgreementSeq)
        {
           return dal.CheckValueSubmit(intAgreementSeq);
        }

        public bool CheckValueDelete(int? intAgreementSeq)
        {
            return dal.CheckValueDelete(intAgreementSeq);
        }
    }
}